package com.whmall.service.crm.enumeration;

public enum SupplierDevelopStatusEnum {

    /**
     * 开发中  in_development
     */
    IN_DEVELOPMENT(1),

    /**
     * 不需开发  no_development_required
     */
    NO_DEVELOPMENT_REQUIRED(2),

    /**
     * 待开发  to_be_developed
     */
    TO_BE_DEVELOPMENT(3),

    /**
     * 已开发   developed
     */
    DEVELOPED(4),

    /**
     * 已下架 has_been_removed
     */
    HAS_BEEN_REMOVED(5);

    public static SupplierDevelopStatusEnum fromNullableValue(Integer value) {
        if (null == value) {
            return null;
        }

        return fromValue(value);
    }

    public static SupplierDevelopStatusEnum fromValue(int value) {
        for (SupplierDevelopStatusEnum anEnum : values()) {
            if (anEnum.getValue() == value) {
                return anEnum;
            }
        }

        throw new UnsupportedOperationException("不支持的状态=" + value);
    }

    SupplierDevelopStatusEnum(int value) {
        this.value = value;
    }

    private final int value;

    public int getValue() {
        return value;
    }

}
